﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace mscook.core.domain
{
    public class ResourceTypeMap : ClassMap<ResourceType>
    {
        public ResourceTypeMap()
        {
            Id(o=>o.Id);
            Map(o => o.CreateTime);
            Map(o => o.IsDelete);
            Map(o => o.Version);
            Map(o => o.EntityIndex);
            Map(o=>o.Name).Not.Nullable();
            Map(o=>o.ResourceCategory);
            References<ResourceType>(o=>o.ParentType).Column("ParentResource");
            
        }
    }
}
